package com.bhs.sansong.adapter;

import androidx.annotation.NonNull;

import com.bhs.sansong.R;
import com.bhs.sansong.bean.AddressInfo;
import com.bhs.sansong.utils.MyUtils;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

/**
 * 历史地址
 */
public class HistoricalAddressAdapter extends BaseQuickAdapter<AddressInfo, BaseViewHolder> {

    public HistoricalAddressAdapter() {
        super(R.layout.item_historical_address);
    }

    @Override
    protected void convert(@NonNull BaseViewHolder helper, AddressInfo item) {
        helper.setText(R.id.tv_name,item.getTruename());
        helper.setText(R.id.tv_phone, MyUtils.phoneHide(item.getMobile()));
        helper.setText(R.id.tv_address,item.getAddress());
    }
}
